﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="DriverReportHZPrintModeWebForm.aspx.cs" Inherits="Anke.SHManage.Web.Reports.DriverReportHZPrintModeWebForm" %>

<%@ Register Assembly="Microsoft.ReportViewer.WebForms, Version=14.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91" Namespace="Microsoft.Reporting.WebForms" TagPrefix="rsweb" %>


<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title>打印预览</title>
    <script src="../Scripts/jquery-1.8.2.min.js"></script>
    <script src="../Content/EasyUI/jquery.js"></script>
    <script src="../Content/EasyUI/jquery.easyui.js"></script>
    <script src="../Content/EasyUI/locale/easyui-lang-zh_CN.js"></script>
    <link href="../Content/EasyUI/themes/icon.css" rel="stylesheet" />
    <link href="../Content/EasyUI/themes/default/easyui.css" rel="stylesheet" />
    <script src="../Scripts/jquery.AnkeExtend.js"></script>
    <script type="text/javascript">
    //页面加载
        $(document).ready(function () {
            DisableBackspace();
            fillCombobox();
        });

        function EUIcombobox(jqS, o) {
            $.ajax({
                type: "POST",
                async: false,
                url: o.url,
                dataType: "JSON",
                success: function (data1, textStatus, jqXHR) {
                    o.data = o.OneOption.concat(data1);
                    delete o.url;
                    delete o.OneOption;
                    $(jqS).combobox(o);
                },
                error: function (XMLHttpRequest, textStatus, errorThrown) {
                    alert("获取字典数据失败！可能是已经超时，请重新登录！");
                }
            });
        }

        function fillCombobox() {

            EUIcombobox("#Center", {
                url: "../Medical/GetCenter/",
                valueField: 'ID',
                textField: 'Name',
                //prompt: '--请选择--',
                editable: false,
                OneOption: [{
                    ID: "",
                    Name: "--请选择--"
                }],
                onSelect: function (rec) {
                    var urlstation ="../Medical/GetStation?code=" +rec.ID;
                    EUIcombobox("#Station", {
                        url: urlstation,
                        valueField: 'ID',
                        textField: 'Name',
                        //prompt: '--请选择--',
                        editable: false,
                        OneOption: [{
                            ID: "",
                            Name: "--请选择--"
                        }]
                    });
                }
            });
            //#endregion
            //#region 出车分站
            EUIcombobox("#Station", {
                url: "../Medical/GetStation?code=",
                valueField: 'ID',
                textField: 'Name',
                //prompt: '--请选择--',
                editable: false,
                OneOption: [{
                    ID: "",
                    Name: "--请选择--"
                }]
            })
        }
        </script>
</head>
<body>
    <form id="form1" runat="server">
        <asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager>
        <table>
            <tr>
                <td>查询时间：</td>
                <td>
                    <asp:TextBox ID="StartDate" class="easyui-datebox" Style="width: 160px" runat="server" editable="false"></asp:TextBox>
                </td>
                <td style="text-align: center">至</td>
                <td>
                    <asp:TextBox ID="EndDate" class="easyui-datebox" Style="width: 160px" runat="server" editable="false"></asp:TextBox>
                </td>
                <td style="text-align: center">分中心</td>
                <td>
                    <asp:TextBox ID="Center" class="easyui-combobox" Style="width: 160px" runat="server" editable="false"></asp:TextBox>
                </td>
                 <td style="text-align: center">分站</td>
                <td>
                    <asp:TextBox ID="Station" class="easyui-combobox" Style="width: 160px" runat="server" editable="false"></asp:TextBox>
                </td>
                 <td>
                    <asp:Button ID="btnSearch" runat="server" Text="查询" OnClick="btnSearch_Click" />
                </td>
            </tr>
        </table>
        <rsweb:ReportViewer ID="ReportViewer1" runat="server" Width="100%" Height="100%" SizeToReportContent="True"></rsweb:ReportViewer>
    </form>
</body>
</html>
